package com.stlm2.dataSource;


public class DBContextHolder {

    public static final String SLAVE = "dataSourceSlave";
    public static final String SLAVE2 = "dataSourceSlave2";
    public static final String SLAVE3 = "dataSourceSlave3";

    //郑州公司 数据源
    public static final String masterData = "masterDataSource";
    //永城公司 数据源
    public static final String yongChengData = "yongChengDataSource";
    //郑州新天地 数据源
    public static final String xtdData = "xtdDataSource";



    private static final ThreadLocal<String> contextHolder = new ThreadLocal<String>();

    public static void setDBType(String dbType) {
        contextHolder.set(dbType);
    }

    public static String getDBType() {
        return contextHolder.get();
    }

    public static void clearDBType() {
        contextHolder.remove();
    }
}
